﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Win.Test21.Model;

namespace Win.Test21.DAL
{
    public class UserInfoDal
    {
        DbContext dbContext = new Test01DbContext();

        public UserInfo GetUserInfo(string username, string password)
        {
            return dbContext.Set<UserInfo>().Where(u => u.Username.Equals(username) && u.Password.Equals(password)).FirstOrDefault();
        }
    }
}
